package com.wl.application.feign.api;

import com.alibaba.nacos.api.exception.NacosException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author wl
 * @version 1.0
 * @date 2022/7/21
 * @description:
 */
@FeignClient(value = "01-provider",path = "/provider")
public interface ProviderApi {

    @GetMapping("/hello")
     String hello(@RequestParam String name,@RequestParam Integer age);

    @PostMapping("/save")
     Map save(@RequestBody Map<String,Object>map);
    @PostMapping("/del/{id}")

    String del(@PathVariable Integer id);
}
